package com.ruoyi.consumer.service.impl;

import com.ruoyi.common.annotation.EasyCache;
import com.ruoyi.consumer.mapper.SysFeeHyMapper;
import com.ruoyi.consumer.service.SysFeeHyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author lisongtao
 * @date 2024/6/13 21:11
 */
@Service
public class SysFeeHyServiceImpl implements SysFeeHyService {

    @Autowired
    private SysFeeHyMapper sysFeeHyMapper;

    /**
     * 获取支付年度
     * 缓存60分钟
     */
    @Override
    @EasyCache(cacheName = "payment:year", expire = 12 * 60)
    public String getPaymentYear() {
        return sysFeeHyMapper.getMaxYear();
    }
}
